﻿using System.ComponentModel.DataAnnotations.Schema;
using System.ComponentModel.DataAnnotations;

namespace MathTutorPro.Data.Entities
{
    public class ChatPrivate
    {
        public int Id { get; set; }
        public string UserId1 { get; set; }
        public AppUser User1 { get; set; }
        public string UserId2 { get; set; }
        public AppUser User2 { get; set; }
        public DateTime? CreateTime { get; set; }

        public DateTime? LastTime { get; set; }

        // 导航属性
        //[NotMapped]
        public ICollection<ChatPrivateMessage> Messages { get; set; } = new List<ChatPrivateMessage>();
    }
}
